package com.foreknow.homework;

public class NoteBook {
    private char color;
    private int cpu;

    public char getColor() {
        return color;
    }

    public void setColor(char color) {
        this.color = color;
    }

    public int getCpu() {
        return cpu;
    }

    public void setCpu(int cpu) {
        this.cpu = cpu;
    }

    public NoteBook(){

    }

    public NoteBook(char color,int cpu){
        this.color=color;
        this.cpu=cpu;
    }

    public void show(){
        System.out.println("笔记本的颜色为："+this.color+
                "，cpu型号为："+this.cpu);
    }

    public static void main(String[] args) {
        NoteBook n=new NoteBook('黑',10);
        n.show();
    }
}
